package com.aegis.gateway.strategy;

import com.aegis.gateway.constants.FilterChainEnum;
import com.aegis.gateway.service.FilterManageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
import org.springframework.web.server.ServerWebExchange;

/**
 * @Author wuweixin
 *
 * @Version 1.0
 * @Descritube satoken对用户进行鉴权
 */
@Component
@Slf4j
public class SaTokenFilterDistributeHandler extends AbsFilterDistributeHandler {


    @Override
    public void handle(ServerWebExchange exchange, Object extra) {
        filterManageService.setNextFilter(exchange, FilterChainEnum.SA_FILTER);
    }

}
